package com.lucweb.service.impl;



import com.lucweb.dao.TellDao;
import com.lucweb.entity.TaskTell;
import com.lucweb.service.TellService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("tellService")
public class TellServiceImpl implements TellService {
    @Resource
    private TellDao tellDao;


    @Override
    public String newtellTask() {

        return null;
    }

    @Override
    public void saveOrUpdate(TaskTell taskTell) {
        tellDao.saveOrUpdate(taskTell);

    }

    @Override
    public TaskTell gettasktellById(int taskId) {
        return this.tellDao.gettellById(taskId);
    }

    @Override
    public boolean deletetelltask(int taskId) {
        tellDao.deletetell(taskId);
        return true;
    }

    @Override
    public List<TaskTell> showtell() {
        return this.tellDao.showTell();
    }

    @Override
    public int getmaxId() {
        return this.tellDao.getmaxId();
    }
}
